package com.directv.z8training.ex9;

import java.lang.reflect.Method;

/**
 * @author HieuLT8
 *
 */
public class ReflectionTests {
	public static void main(String[] args) {
		Class cls;
		Class noparam[] = {};
		try {
			cls = Class.forName("com.directv.z8training.ex9.Counter");
			Object o = 	cls.newInstance();
			
			Method method = cls.getDeclaredMethod("helloWorldReflection", noparam);
			method.setAccessible(true);
			method.invoke(o, null);
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
